<?php

class Controller {

	function __construct(){
		$this->f= new Functions();
		$this->view = new View();
	}

	public function loadModel($name){
		$path= SVROOT.'Models/' . $name . '_model.php';

		if (file_exists($path)) {
			require $path;
			$modelName = $name  . '_model';
			$this->model = new $modelName;
		}
	}
}
?>